
/**常量：地图配置 */
/**
    ArcGIS 离散瓦片：http://localhost:8080/tilemap/_alllayers/{z}/{y}/{x}.png
    百度深色地图：http://api1.map.bdimg.com/customimage/tile?&x={x}&y={y}&z={z}&udt=20190410&scale=1&ak=8d6c8b8f3749aed6b1aff3aad6f40e37&styles=t%3Awater%7Ce%3Aall%7Cc%3A%23021019%2Ct%3Ahighway%7Ce%3Ag.f%7Cc%3A%23000000%2Ct%3Ahighway%7Ce%3Ag.s%7Cc%3A%23147a92%2Ct%3Aarterial%7Ce%3Ag.f%7Cc%3A%23000000%2Ct%3Aarterial%7Ce%3Ag.s%7Cc%3A%230b3d51%2Ct%3Alocal%7Ce%3Ag%7Cc%3A%23000000%2Ct%3Aland%7Ce%3Aall%7Cc%3A%2308304b%2Ct%3Arailway%7Ce%3Ag.f%7Cc%3A%23000000%2Ct%3Arailway%7Ce%3Ag.s%7Cc%3A%2308304b%2Ct%3Asubway%7Ce%3Ag%7Cl%3A-70%2Ct%3Abuilding%7Ce%3Ag.f%7Cc%3A%23000000%2Ct%3Aall%7Ce%3Al.t.f%7Cc%3A%23857f7f%2Ct%3Aall%7Ce%3Al.t.s%7Cc%3A%23000000%2Ct%3Abuilding%7Ce%3Ag%7Cc%3A%23022338%2Ct%3Agreen%7Ce%3Ag%7Cc%3A%23062032%2Ct%3Aboundary%7Ce%3Aall%7Cc%3A%231e1c1c%2Ct%3Amanmade%7Ce%3Ag%7Cc%3A%23022338%2Ct%3Apoi%7Ce%3Aall%7Cv%3Aoff%2Ct%3Aall%7Ce%3Al.i%7Cv%3Aoff%2Ct%3Aall%7Ce%3Al.t.f%7Cv%3Aon%7Cc%3A%232da0c6
    百度高清地图（适用手机端）：http://mapor1.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=pl&udt=20170712&scaler=2
    百度高清地图（适用PC端） http://online0.map.bdimg.com/tile/?qt=tile&styles=pl&x={x}&y={y}&z={z};
    百度mapExtent: 12949773,4825000,12969773,4825000
 **/
export const MAP_CONFIG: any = {
    mapExtent : '12949773,4825000,12969773,4825000', // '107.381035,21.552127,109.381035,25.552127',
    spatialRef : '3857',
    maxZoom: 19,
    tileLayers: [{
        mapServerType: 4, // 地图服务器类型，1：静态文件；2：quokkaMapServer; 3:ArcGIS;4:百度
        mapServerUrl: 'http://online0.map.bdimg.com/tile/?qt=tile&styles=pl&x={x}&y={y}&z={z}',
        layerName : '底图',
        tileType: 1, // 1:esri离散瓦片
        tile: {
            mapExtent : '643329.90421877895,3274037.2289000005,664435.33516982477,3297446.0342676919',
            tileSize : 512,
            mapResolution : '0.52916772500211673,1.0583354500042335,2.1166709000084669,4.2333418000169338,8.4666836000338677,16.933367200067735,31.750063500127002',
            spatialRef: 3857,
            spatialType : 1,
            origionPtX : -5123300,
            origionPtY : 10002300
        }
    }]
    // vectorLayers: [{
    //     mapServerType: 1, // 地图服务器类型，1：静态文件；2：quokkaMapServer; 3:ArcGIS;4:百度
    //     mapServerUrl: 'http://localhost:4200/assets/map/gx/450000.json',
    //     spatialRef: 4326,
    //     layerName : '行政区域',
    //     vectorType: 'geojson', // geojson;wfs
    //     mapExtent : '107.381035,22.552127,109.381035,24.552127'
    // }, {
    //     mapServerType: 1, // 地图服务器类型，1：静态文件；2：quokkaMapServer; 3:ArcGIS;4:百度
    //     mapServerUrl: 'http://localhost:4200/assets/map/gx/450100.json',
    //     spatialRef: 4326,
    //     layerName : '行政区域',
    //     vectorType: 'geojson', // geojson;wfs
    //     mapExtent : '107.381035,22.552127,109.381035,24.552127'
    // }]
};

